home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d3 / mult_edi.arc / C.HLP < prev    next >
Text File  |  1989-10-21  |  3KB  |  78 lines

  1. * LANGUAGE SUPPORT FOR C
  2. Language support for C contains 3 main utilities to make coding in C faster
  3. and easier:
  4.  
  5.     @CTE[Template Editing]
  6.  
  7.     @CSI[Smart Indenting]
  8.  
  9.     @CCM[Construct Matching]
  10.  
  11. In order to utilize these language support utilities, you must configure the
  12. @ME.HLP^FE[filename extension(s)] you use for C for the language type ^BC^b.
  13. CTE TEMPLATE EDITING FOR C
  14. DEFAULT KEY: <AltT> or <AltF9>
  15.  
  16. Template editing is designed to reduce the amount of redundant typing by
  17. expanding a single character into one or more words, on one or more lines,
  18. which normally constitute a language construct.  A typical situation is
  19. where an "IF <condition> THEN" construct, common to most high level languages,
  20. is desired.  Typing in the leading "I" character, then pressing the template
  21. key will then complete the construct, placing the cursor in the proper spot
  22. to define the conditional part of the construct.
  23.  
  24.     i   Builds an 'if () {' construct.
  25.     w   Builds a 'while () {' construct.
  26.     f   Builds a 'for () {' construct.
  27.     {   Builds matching braces.
  28.     s   Builds a 'switch () {' construct.
  29.     d   Builds a 'do { } while ();' construct.
  30.     /*  Builds a date stamped comment block.
  31.  
  32.     Examples:
  33.         Original line:
  34.             i
  35.         After template:
  36.             if () {
  37.             }
  38.  
  39.         Original line:
  40.             d
  41.         After template:
  42.             do {
  43.  
  44.             } while ();
  45. CSI SMART INDENTING FOR C
  46. Invoked by pressing <ENTER>
  47.  
  48. Most high level languages are more readable if compound constructs and
  49. iterative loops are progressively indented.  In order to automate this
  50. process, Multi-Edit provides smart indenting.  When <ENTER> is pressed, the
  51. current line is examined(sometimes lines above and below are also examined).
  52. Based upon certain conditions, a decision is made whether to indent, undent,
  53. or remain the same.
  54.  
  55. For C, if an opening curly brace '{' is the last character on the line,
  56. Multi-Edit will indent the new line one tab stop beyond the indent of the
  57. previous line.  In addition, if the previous line is not terminated by
  58. a ';' or a '{' then it is assumed that this is a continuation line, and
  59. indents twice.  If you are inside a comment, then an '*' is automatically
  60. added.
  61.  
  62. CCM CONSTRUCT MATCHING FOR C
  63. MENU, Support, Match  or  <AltF6>  or  <AltM>
  64.  
  65. Construct matching is useful for finding the beginning or ending of a large
  66. compound construct, and also to check to see if there is a missing opening or
  67. closing to the construct.
  68.  
  69. In C, placing the cursor on the following pairs of keywords and invoking
  70. match will cause the matching keyword to be searched for:
  71.  
  72.     (    )
  73.  
  74.     {    }
  75.  
  76. If successful, the message line will read "Match Found", and the cursor will
  77. move to the matching keyword.  If unsuccessful "Match NOT Found" will appear
  78. on the message line, and the cursor will not move.